var Mock = require('mockjs');

exports.response = function(req, res) {
  return Mock.mock([
    {
        "trader": "54716",
        "dataDate": "all",
        "specialType": "max_potential_risk",
        "specialText": "最大潜在风险的平仓记录",
        "openOrderId": "887124",
        "closeOrderId": "957950",
        "orderIndex": 30,
        "closeOrder": {
            "trader": "54716",
            "dataDate": "2018-01-05",
            "orderId": "957950",
            "symbol": "002466.SZ",
            "tradeType": "Sell",
            "price": 57.75,
            "quantity": 100,
            "fee": 6.3,
            "timestamp": 1515117102000,
            "tradeDate": "2018-01-05",
            "closedPositionList": [
                {
                    "trader": "54716",
                    "dataDate": "2018-01-05",
                    "symbol": "002466.SZ",
                    "tradeType": "Buy",
                    "buyPrice": 51.48,
                    "sellPrice": 57.75,
                    "quantity": 100,
                    "fee": 6.7562,
                    "openTime": 1514258677000,
                    "closeTime": 1515117102000,
                    "openOrderId": "887124",
                    "closeOrderId": "957950",
                    "tradeDate": "2018-01-05",
                    "pnl": 620.2438
                }
            ]
        }
    },
    {
        "trader": "54716",
        "dataDate": "all",
        "specialType": "max_risk_over_pnl",
        "specialText": "最大风险收益比的平仓记录",
        "openOrderId": "887124",
        "closeOrderId": "957950",
        "orderIndex": 40,
        "closeOrder": {
            "trader": "54716",
            "dataDate": "2018-01-05",
            "orderId": "957950",
            "symbol": "002466.SZ",
            "tradeType": "Sell",
            "price": 57.75,
            "quantity": 100,
            "fee": 6.3,
            "timestamp": 1515117102000,
            "tradeDate": "2018-01-05",
            "closedPositionList": [
                {
                    "trader": "54716",
                    "dataDate": "2018-01-05",
                    "symbol": "002466.SZ",
                    "tradeType": "Buy",
                    "buyPrice": 51.48,
                    "sellPrice": 57.75,
                    "quantity": 100,
                    "fee": 6.7562,
                    "openTime": 1514258677000,
                    "closeTime": 1515117102000,
                    "openOrderId": "887124",
                    "closeOrderId": "957950",
                    "tradeDate": "2018-01-05",
                    "pnl": 620.2438
                }
            ]
        }
    },
    {
        "trader": "54716",
        "dataDate": "all",
        "specialType": "max_pnl_efficiency",
        "specialText": "最大盈利效率的平仓记录",
        "openOrderId": "887124",
        "closeOrderId": "957950",
        "orderIndex": 50,
        "closeOrder": {
            "trader": "54716",
            "dataDate": "2018-01-05",
            "orderId": "957950",
            "symbol": "002466.SZ",
            "tradeType": "Sell",
            "price": 57.75,
            "quantity": 100,
            "fee": 6.3,
            "timestamp": 1515117102000,
            "tradeDate": "2018-01-05",
            "closedPositionList": [
                {
                    "trader": "54716",
                    "dataDate": "2018-01-05",
                    "symbol": "002466.SZ",
                    "tradeType": "Buy",
                    "buyPrice": 51.48,
                    "sellPrice": 57.75,
                    "quantity": 100,
                    "fee": 6.7562,
                    "openTime": 1514258677000,
                    "closeTime": 1515117102000,
                    "openOrderId": "887124",
                    "closeOrderId": "957950",
                    "tradeDate": "2018-01-05",
                    "pnl": 620.2438
                }
            ]
        }
    },
    {
        "trader": "54716",
        "dataDate": "all",
        "specialType": "max_position_efficiency",
        "specialText": "最大仓位效率的平仓记录",
        "openOrderId": "887124",
        "closeOrderId": "932300",
        "orderIndex": 60,
        "closeOrder": {
            "trader": "54716",
            "dataDate": "2018-01-02",
            "orderId": "932300",
            "symbol": "002466.SZ",
            "tradeType": "Sell",
            "price": 53.66,
            "quantity": 100,
            "fee": 5.85,
            "timestamp": 1514857878000,
            "tradeDate": "2018-01-02",
            "closedPositionList": [
                {
                    "trader": "54716",
                    "dataDate": "2018-01-02",
                    "symbol": "002466.SZ",
                    "tradeType": "Buy",
                    "buyPrice": 51.48,
                    "sellPrice": 53.66,
                    "quantity": 100,
                    "fee": 6.3062,
                    "openTime": 1514258677000,
                    "closeTime": 1514857878000,
                    "openOrderId": "887124",
                    "closeOrderId": "932300",
                    "tradeDate": "2018-01-02",
                    "pnl": 211.6938
                }
            ]
        }
    }
])
}
